package com.aboat.action;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;

/**
 * 使用说明
 *
 * @author aboat
 * @email clear_windy@yeah.net
 * @create 2017-04-09 11:34
 */
public class IllustrationListener implements ActionListener{
    @Override
    public void actionPerformed(ActionEvent e) {
            new Thread() {
                public void run() {
                    String cmd = "cmd.exe /c start ";
                    String file = "https://shop108848006.taobao.com/index.htm";
                    try {
                        Runtime.getRuntime().exec(cmd + file);
                    } catch (IOException ignore) {
                        ignore.printStackTrace();
                    }
                }
            }.start();
        //JOptionPane.showMessageDialog(null, "这个要怎么用呢？我也不知道啊！","使用说明", JOptionPane.INFORMATION_MESSAGE);
    }
}
